<template>
  <div>
    
  </div>
</template>

<script>
import { useRouter } from 'vue-router';
export default {
  props: {
    params: Object
  },
  setup(props) {
    const router = useRouter();
    function handleToDetails() {
      let path = '';
      if (props.params.pathType === 'details') {
        console.log(22);
        path = '/details';
      } else {
        console.log(33);
        path = '/major';
      }
      router.push(path);
    };
    return {
      handleToDetails
    }
  }
}
</script>

<style scoped>
.school-name {
  font-size: 20px !important;
  line-height: 40px !important;
  font-weight: 600;
}
</style>
